<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>bookedit</title>
</head>
<body>
<h1>{{ bkinfo.bookname }}编辑页</h1>
{#<form action="{% url "bk_edit" %}" method="POST">#}
<form action="" method="POST">
	<ul>
		<li><input type="text" name="bookname" value="{{ bkinfo.bookname }}" /></li>
		<li><input type="text" name="author" value="{{ bkinfo.author }}" /></li>
		<li><input type="text" name="price" value="{{ bkinfo.price }}" /></li>
		<li><input type="text" name="date" value="{{ bkinfo.date }}" /></li>
		<li>
			<select name="booktype">
				{% for item in BKList %}
					{% if "{{ bkinfo.bktype }}" == "{{ item.id }}" %}
						<option value={{ item.id }} selected="selected">{{ item.booktype }}</option>
					{% else %}
						<option value={{ item.id }}>{{ item.booktype }}</option>
					{% endif %}
				{% endfor %}
			</select>
		</li>
		<li><input type="submit" value="确定修改" /></li>
	</ul>
</form>
</body>
</html>